﻿using Jayden.Dll.Web.HtmlControls;

namespace Jayden.Dll.Web.Controls
{
	public class TitleHeader : Header
	{
		private H1 m_Website;

		public override void Load(System.Xml.XmlNode node, HtmlControlLoader loader)
		{
			base.Load(node, loader);

			m_Website = GetElementByServerId<H1>("website");
		}

		public override void ProcessHtmlRequest(HttpHandlerContext context)
		{
			base.ProcessHtmlRequest(context);
			m_Website.InnerText = context.Configuration.GetValue("Website/@name", m_Website.InnerText);
		}
	}
}
